#pragma once

#include <vector>

#include "Common/Logger.h"
#include "Common/Types.h"

namespace keeper_server {

class MySQLStatement {
 public:
  MySQLStatement() {}
  ~MySQLStatement() {}

  void print_info() {
    for (auto &tmp : _tmps) {
      LOG_INFO("%s", tmp.c_str());
    }
  }
  char* create_char_string(const char* value) {
    auto len = strlen(value);
    char* tmp = new char[len + 1];
    memcpy(tmp, value, len);
    tmp[len] = '\0';
    return tmp;
  }

  std::vector<String> _tmps;
};

}  // namespace keeper_server
